package org.chnxi.study.springcloud.alibaba.storage.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StorageController {

    @Value("[${spring.application.name}-${server.port}]:")
    private String appName;

    @GetMapping("/storage/test")
    public String test(){
        return appName+"ok";
    }

}
